//
//  LSZPostedImageViewTableViewCell.m
//  JKFuYinProject
//
//  Created by 九酷 on 2017/12/18.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LSZPostedImageViewTableViewCell.h"

@implementation LSZPostedImageViewTableViewCell

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        //类别
        self.labelClass = [[UILabel alloc]init];
        self.labelClass.text = @"上传封面";
        self.labelClass.textColor = titleColorLSZ;
        self.labelClass.textAlignment =NSTextAlignmentCenter;
        [self addSubview:self.labelClass];

        UIView * viewShu = [[UIView alloc]init];
        viewShu.backgroundColor = divider;
        [self addSubview:viewShu];

        self.imageViewPosted = [[UIImageView alloc]init];
        [self addSubview:self.imageViewPosted];

        if (ScreenWidth == 320) {
            //5
            self.labelClass.font = FONT_(13.5);
            self.labelClass.frame = CGRectMake(14, (45-16)/2, 75, 16);
            viewShu.frame = CGRectMake(CGRectGetMaxX(self.labelClass.frame)+1.5,(45-16)/2, 1, 16);
            self.imageViewPosted.frame = CGRectMake((ScreenWidth-CGRectGetMaxX(viewShu.frame)-213.34)/2+CGRectGetMaxX(viewShu.frame), 10,213.34, 120);
        }else if(ScreenWidth == 375){
            // 6 7
            self.labelClass.font = FONT_(14);
            self.labelClass.frame = CGRectMake(14, (50-18)/2, 75, 18);
            viewShu.frame = CGRectMake(CGRectGetMaxX(self.labelClass.frame)+1.5, (50-18)/2, 1, 16);
            self.imageViewPosted.frame = CGRectMake((ScreenWidth-CGRectGetMaxX(viewShu.frame)-231.11)/2+CGRectGetMaxX(viewShu.frame), 10,231.11, 130);
        }else {
            //plus
            self.labelClass.font = FONT_(14.5);
            self.labelClass.frame = CGRectMake(14, (58-20)/2, 75,20);
            viewShu.frame = CGRectMake(CGRectGetMaxX(self.labelClass.frame)+1.5, (58-20)/2, 1, 16);
            self.imageViewPosted.frame = CGRectMake((ScreenWidth-CGRectGetMaxX(viewShu.frame)-248.89)/2+CGRectGetMaxX(viewShu.frame), 10,248.89, 140);
        }

     }
    return self;
}
@end
